import { createRouter, createWebHashHistory } from "vue-router";

// 引入路由配置
import { constantRoutes } from "./routes";

// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes: constantRoutes,
  scrollBehavior() {
    return {
      left: 0,
      top: 0,
    };
  },
});

// 导出路由实例
export default router;
